<?php
namespace app\test\controller;
use think\Controller;


class Base extends Controller{

    public function _initialize()
    {
        if(!session('username')){
            $this->error('请先登录！','/test/login/login');
        }
    }
}
